﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="AddProgram.ascx.vb" Inherits="WebForm_ManageProgram_AddProgram" %>
<asp:FormView ID="fv" runat="server" DefaultMode="Insert" Width="100%">
    <ItemTemplate>
        <table>
            <tr>
                <td align="right">
                    <asp:Label ID="lblProgramGroup" runat="server" meta:resourcekey="lblProgramGroup"></asp:Label>
                </td>
                <td align="left">
                    <asp:DropDownList ID="ddlProgramGroup" runat="server" Enabled="False">
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblItemType" runat="server" meta:resourcekey="lblItemType"></asp:Label>
                </td>
                <td align="left">
                    <asp:DropDownList ID="ddlItemType" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlItemType_SelectedIndexChanged">
                        <asp:ListItem Value="1">選單</asp:ListItem>
                        <asp:ListItem Value="2">目錄</asp:ListItem>
                    </asp:DropDownList>
                    <asp:TextBox ID="txtProgramGroupName" runat="server" Visible="False"></asp:TextBox></td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblTarget" runat="server" meta:resourcekey="lblTarget"></asp:Label>
                </td>
                <td align="left">
                    <asp:DropDownList ID="ddlTarget" runat="server">
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblProgramName" runat="server" meta:resourcekey="lblProgramName"></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtProgramName" runat="server" Text='<%# Bind("ProgramName") %>'></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblUrl" runat="server" meta:resourcekey="lblUrl"></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtUrl" runat="server" Text='<%# Bind("Url") %>'></asp:TextBox>&nbsp;</td>
            </tr>
            <tr>
                <td align="right">
                  <%--  <asp:Label ID="lblReferrer" runat="server" meta:resourcekey="lblReferrer"></asp:Label>--%>
                </td>
                <td align="left">
               <%--     <asp:DropDownList ID="ddlReferrer" runat="server" DataSourceID="odsReferrer" DataTextField="Description" DataValueField="ReferrerID" OnDataBound="ddlReferrer_Databound"  >
                    </asp:DropDownList>
                    <asp:ObjectDataSource ID="odsReferrer" runat="server"  TypeName="BLL_AddProgram" SelectMethod="GetDDLReferrer">
                    </asp:ObjectDataSource>--%>
                    </td>                    
            </tr>             
            <tr>
                <td align="right">
                    <asp:Label ID="lblVisible" runat="server" meta:resourcekey="lblVisible"></asp:Label>
                </td>
                <td align="left">
                    <asp:DropDownList ID="ddlVisible" runat="server">
                    </asp:DropDownList></td>
            </tr>
           
<%--            <tr>
                <td align="right">
                    <asp:Label ID="lblInternal" runat="server" meta:resourcekey="lblInternal"></asp:Label>
                </td>
                <td align="left">
                    <asp:DropDownList ID="ddlInternal" runat="server" DataSourceID="CodeMappingSqlDataSource_ddlInternal" DataTextField="Text" DataValueField="Value" SelectedValue='<%#Bind("Internal") %>'>
                    </asp:DropDownList>
                    
                    <My:CodeMappingSqlDataSource ID="CodeMappingSqlDataSource_ddlInternal" runat="server" TableName="Program" ColumnName="Internal">
                    </My:CodeMappingSqlDataSource>                    
                </td>
            </tr>  --%>         
            
            <tr>
                <td align="right">
                    <asp:Label ID="lblSequence" runat="server" meta:resourcekey="lblSequence"></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtSequence" runat="server" Text='<%# Bind("Sequence") %>'></asp:TextBox>
                </td>
            </tr>
        </table>
        <table width="100%">
            <tr class="ToolBox">
                <td align="right">
                    <My:SaveToolBar ID="SaveToolBar1" runat="server" meta:resourcekey="SaveToolBar1"
                        ValidationGroup="Save" />
                </td>
            </tr>
        </table>
    </ItemTemplate>
</asp:FormView>
